from flask import Flask
from flask import render_template
app=Flask(__name__)
@app.route("/")
def book_list():
    books = [
        {"book_name": "《百年孤独》", "book_type": "小说", "author": "加西亚.马尔克斯", "public":"北京十月文艺出版社"},
        {"book_name": "《人间失格》", "book_type": "小说", "author": "太宰治", "public":"武汉出版社"},
         {"book_name": "《恶意》", "book_type": "小说", "author": "东野圭吾", "public":"南海出版社"},
        {"book_name": "《沉沦》", "book_type": "小说", "author": "郁达夫", "public":"天津人民出版社"},
        {"book_name": "《米》", "book_type": "小说", "author": "苏童", "public":"上海文艺出版社"},
        {"book_name": "《米》", "book_type": "小说", "author": "苏童", "public":"上海文艺出版社"},
        {"book_name": "《米》", "book_type": "小说", "author": "苏童", "public":"上海文艺出版社"},
    ]
    return render_template('书签.html',**locals())
if __name__ == '__main__':
   app.run()




